const query = require('../config/db.config.js')

const schoolMod = {
  getSchoolMod: async () => {
    // 查数据库
    const res = await query('select * from schoolinfo')
    return res
  },
  getDeplistMod:async (id)=>{
    const res = await query(`select * from depinfo where schoolId = ${id}`)
    return res
  }
}

module.exports = schoolMod